<extend name="Home@Base/common" />
<block name="body">
    <div class="span9 page_message">
        <section id="contents"> <include file="Home@Addons/_nav" />
            <div class="tab-content">
                <php> $post_url || $post_url = U('edit?model='.$model['id'], $get_param);</php>
                <div class="form-horizontal form-center" method="post" action="{$post_url}" id="form">
                    <div class="form-item cf" style="float: left">
                        <label class="item-label"> <span class="need_flag">*</span>角色<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="duty_id" multiple="true">
                                <option value="{$duty.id}" selected>{$duty.name}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-item cf" style="float: inherit">
                        <label class="item-label"> <span class="need_flag">*</span>角色<span class="check-tips"></span></label>
                        <div class="controls">
                            <volist name="roles" id="vo">
                                <input type='checkbox' name='{$vo.name}' value=1 {$vo.checked}>{$vo.name}<br>
                            </volist>
                        </div>
                    </div>
                    <div class="form-item form_bh">
                        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    </div>
                    </form>
                </div>
        </section>
    </div>
    <script>
        function del() {
            if(confirm("确定要删除吗？")) {
                return true;
            } else {
                return false;
            }
        }
    </script>
</block>
